PATH![]() |
![]() ![]() |
When your application receives a mouse-down event, your application calls the FindWindow function to map the cursor location to a window region. The FindWindow function specifies the region by returning one of these constants:
When the user presses the mouse button while the cursor is in a window, FindWindow not only returns a constant that identifies the window region but also reports which window the cursor is in by placing a pointer to this window at the address specified in one of its parameters. Your response to FindWindow depends on whether the cursor is in the active window and the kind of window that the cursor is in.
When you receive a mouse-down event in the active window, you route the event to the function that is appropriate for handling the mouse-down event for a given region. Tracking a Window Proxy Icon Drag describes how your application can respond to a mouse-down event in the proxy icon region of a window that indicates a user request to drag the proxy icon. Displaying a Window Path Pop-Up Menu shows how your application can handle the case where a mouse-down event--in either a window's drag region or its proxy icon region--indicates a user request to display the window path pop-up menu.